package com.qf.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.qf.mapper.DtsGoodsMapper;
import com.qf.pojo.DtsGoods;
import com.qf.service.DtsGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Cc
 * @version 1.0
 */
@Service
public class DtsGoodsServiceImpl implements DtsGoodsService {

    @Autowired
    private DtsGoodsMapper dtsGoodsMapper;

    @Override
    public int count() {
        QueryWrapper<DtsGoods> wapper = new QueryWrapper<>();
        wapper.eq("deleted", false);
        Integer count = dtsGoodsMapper.selectCount(wapper);
        return count;
    }


}
